//
//  LZRestaurantAuthRejectedView.m
//  laziz_Merchant
//
//  Created by xbnzd on 17/3/8.
//  Copyright © 2017年 XBN. All rights reserved.
//

#import "LZRestaurantAuthRejectedView.h"

@interface LZRestaurantAuthRejectedView()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *reasonLabel;

@end

@implementation LZRestaurantAuthRejectedView

- (void)awakeFromNib
{
    [super awakeFromNib];
}
- (void)loadReasonText:(NSString *)str titleText:(NSString *)text
{
    self.titleLabel.text = text;
    self.reasonLabel.text = str;
}

- (CGSize)intrinsicContentSize
{
    CGFloat h = [self.reasonLabel.text boundingRectWithSize:CGSizeMake(SCREEN_WIDTH - 50, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:13]} context:nil].size.height;
    
    return CGSizeMake(SCREEN_WIDTH, 15 + 23 + 10 + h + 15);
}

@end
